/*
 * CatGralDTO.java
 * Intuition Technologies. Todos los derechos reservados.
 */
package mx.com.asteca.comun.dto;

import java.io.Serializable;

/**
 * Representacion de un Catalogo General en un DTO
 * 
 * @author Jorge Amaro Coria
 * @version 1.0
 * @since 1.0
 * 
 */
public class CatGralDTO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String cveRegistro;
	private String dsc;
	private String estatus;
	private Short activo;
	private int idCatGral;
	private int idTipoCatGral;
	private String tipo;
	private int idEstatus;
	private String dscEstatus;

	/**
	 * @return
	 */
	public String getCveRegistro() {
		return cveRegistro;
	}

	/**
	 * @param cveRegistro
	 */
	public void setCveRegistro(String cveRegistro) {
		this.cveRegistro = cveRegistro;
	}

	/**
	 * @return
	 */
	public String getDsc() {
		return dsc;
	}

	/**
	 * @param dsc
	 */
	public void setDsc(String dsc) {
		this.dsc = dsc;
	}

	/**
	 * @return
	 */
	public String getEstatus() {
		return estatus;
	}

	/**
	 * @param estatus
	 */
	public void setEstatus(String estatus) {
		this.estatus = estatus;
	}

	/**
	 * @return
	 */
	public Short getActivo() {
		return activo;
	}

	/**
	 * @param activo
	 */
	public void setActivo(Short activo) {
		this.activo = activo;
	}

	/**
	 * @return
	 */
	public int getIdCatGral() {
		return idCatGral;
	}

	/**
	 * @param idCatGral
	 */
	public void setIdCatGral(int idCatGral) {
		this.idCatGral = idCatGral;
	}

	/**
	 * @return
	 */
	public int getIdTipoCatGral() {
		return idTipoCatGral;
	}

	/**
	 * @param idTipoCatGral
	 */
	public void setIdTipoCatGral(int idTipoCatGral) {
		this.idTipoCatGral = idTipoCatGral;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + idCatGral;
		return result;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CatGralDTO other = (CatGralDTO) obj;
		if (idCatGral != other.idCatGral)
			return false;
		return true;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "CatGralDTO [cveRegistro=" + cveRegistro + ", dsc=" + dsc
				+ ", estatus=" + estatus + ", activo=" + activo
				+ ", idCatGral=" + idCatGral + ", idTipoCatGral="
				+ idTipoCatGral + "]";
	}

	/**
	 * @return the tipo
	 */
	public String getTipo() {
		return tipo;
	}

	/**
	 * @param tipo
	 *            the tipo to set
	 */
	public void setTipo(String tipo) {
		this.tipo = tipo;
	}

	/**
	 * @return the idEstatus
	 */
	public int getIdEstatus() {
		return idEstatus;
	}

	/**
	 * @param idEstatus the idEstatus to set
	 */
	public void setIdEstatus(int idEstatus) {
		this.idEstatus = idEstatus;
	}

	/**
	 * @return the dscEstatus
	 */
	public String getDscEstatus() {
		return dscEstatus;
	}

	/**
	 * @param dscEstatus the dscEstatus to set
	 */
	public void setDscEstatus(String dscEstatus) {
		this.dscEstatus = dscEstatus;
	}

}
